﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="RoleManage.aspx.cs" Inherits="Empolyee_RoleManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h2>
        角色业务权限分配</h2>
    <table class="searchtb">
        <tr>
            <td style="width: 15%;">
                角色
            </td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="ObjectDataSource2"
                    DataTextField="RoleName" DataValueField="RoleID" AutoPostBack="True" 
                    onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td style="width: 15%;">
                业务步骤
            </td>
            <td>
                <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="DropDownList2_SelectedIndexChanged">
                    <asp:ListItem Value="1" Selected="True">报单</asp:ListItem>
                    <asp:ListItem Value="2">财务处理</asp:ListItem>
                    <asp:ListItem Value="3">文件受理</asp:ListItem>
                    <asp:ListItem Value="4">快递</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1">
        <HeaderTemplate>
            <table>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Bind("DelegateName")%>' ToolTip='<%# Bind("DelegateType")%>'/>
                </td>                
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div>
        <asp:Button ID="Button1" runat="server" Text="保存" CssClass="searchbutton" 
            onclick="Button1_Click" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetDelegates"
        TypeName="Koonsoft.HYCRM.BLL.DelegateBLL"></asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetRoles"
        TypeName="Koonsoft.HYCRM.BLL.RoleBLL"></asp:ObjectDataSource>
</asp:Content>
